﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;
using SchoolManagement.Models;
using SchoolManagement.Models.Authrization;
using SchoolManagement.Utilities;

namespace SchoolManagement.Controllers
{

    public class HomeController : ControllerBase
    {
        
        public ActionResult Index()
        {
            ViewBag.Message = "Welcome to ASP.NET MVC!";

            return View();
        }
        [CustomAuthorize]
        public ActionResult About()
        {
            return View();
        }
        public JsonResult getmenu()
        {
            User u = new User();
            u.UserName = "Teahcer";
            return Json(u);
        }
    }
}
